program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  fin:textFile;
  x, y, x0, y0, s, s1, n, i : integer;
  mass : array of integer;
  mass1 : array of integer;

begin
  assignFile (fin, 'input.txt');
  reset (fin);

  readln(fin, n);
  setlength(mass, n+1);
  setlength(mass1, n+1);

  for i := 1 to n+1 do
  begin
    read(fin, mass[i]);
    readln(fin, mass1[i]);
  end;

  mass[0]:=mass[n+1];
  mass1[0]:=mass1[n+1];
  mass[n+1]:=mass[1];
  mass1[n+1]:=mass[1];
  s:=0;
  for i:= 1 to n do
  begin
    s:=s+mass[i]*mass1[i+1]-mass[i+1]*mass1[i];
  end;

  s1:=0;
  mass[n+1]:=mass[0];
  mass1[n+1]:=mass[0];
  for i:=0 to n do
  begin
    s1:=s1+mass[i]*mass1[i+1]-mass[i+1]*mass1[i];
  end;

  if (abs(s)>=abs(s1)) then
    writeln('The point is inside.');
  if (abs(s)<abs(s1)) then
    writeln ('The point is not inside.');
  closeFile(fin);

  readln;
end.
